package com.woniu.service;

import com.woniu.entity.PageResult;
import com.woniu.entity.Result;
import com.woniu.entity.dto.BrandSearchDTO;
import com.woniu.pojo.Brand;

import java.util.List;

public interface IBrandService {
    PageResult<Brand> listSearch(BrandSearchDTO brandSearchDTO);

    Result save(Brand brand);

    Integer deleteByIds(Long[] ids);

    Result updateById(Brand brand);

    Brand getById(Long id);

    Brand checkNameExist(String name);

    List<Brand> listAll();
}
